package top.codedance.iotp.iot.sdk.po.sync;

import javax.xml.bind.DatatypeConverter;

public class UdpClientParam {
    private Integer id;
    private String command;
    private boolean hex = false;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
        this.hex = false;
    }

    public void setCommand(byte[] command) {
        this.command = DatatypeConverter.printHexBinary(command);
        this.hex = true;
    }

    public boolean isHex() {
        return hex;
    }
}
